{include file="public/head"/} 
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a><cite>后台管理</cite></a>
        <a><cite>停车记录管理中心</cite></a>
        <a><cite>车辆出场记录</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so"  method="get" action="{url(admin/Record/recordList)}">
          <div class="layui-input-inline">
            <select name="out_parking_id" lay-filter="commname" id="commname">
              <option value="">所属停车场</option>
              {foreach $parkinglist as $parking}
              <option value="{$parking.out_parking_id}" {if isset($out_parking_id)}{if $out_parking_id == $parking.out_parking_id} selected {/if}{/if}>{$parking.parking_name}</option>
              {/foreach}
            </select>
          </div>
		  <div class="layui-input-inline">
            <select name="car_type" lay-filter="commname" id="commname">
              <option value="">车辆类型</option>
              
              <option value="1" {if isset($car_type)}{if $car_type == "1"} selected {/if}{/if}>临时车</option>
              <option value="2" {if isset($car_type)}{if $car_type == "2"} selected {/if}{/if}>月租车</option>
			  <option value="3" {if isset($car_type)}{if $car_type == "3"} selected {/if}{/if}>地库车</option>
            </select>
          </div>
          <input type="text" name="car_number"  placeholder="车牌号码" autocomplete="off" class="layui-input" value="{if isset($car_number)}{$car_number}{/if}">
          
		  
          <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
      </div>
      <xblock>
	  
        <span class="x-right" style="line-height:40px">共有数据：{$number} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
            <th style="text-align: center; font-size: 16px;">ISV停车场ID</th>
            <th style="text-align: center; font-size: 16px;">停车场名称</th>
            <th style="text-align: center; font-size: 16px;">车牌号码</th>
			<th style="text-align: center; font-size: 16px;">车辆类型</th>
            <th style="text-align: center; font-size: 16px;">出场时间</th>
			<th style="text-align: center; font-size: 16px;">出口</th>
          </tr>
        </thead>
        <tbody>
          {foreach $recordlist as $lis}
          <tr>
            <td style="text-align: center;">{$lis.out_parking_id}</td> 
            <td style="text-align: center;">{$lis.parking_name}</td>
            <td style="text-align: center;">{$lis.car_number}</td>
			<td style="text-align: center;">
				<!--{if $lis.car_type=="1"}临时车{/if}-->
				{if $lis.car_type=="2"}月租车{/if}
				{if $lis.car_type=="3"}地库车{/if}
			</td>
            <td style="text-align: center;">{$lis.out_time}</td>
			<td style="text-align: center;">{$lis.system_name}</td>
          </tr>
          {/foreach}
        </tbody>
      </table>
      <div class="page">
        <div>
            {$recordlist->render()}
        </div>
      </div>

    </div>
    
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
  </body>

</html>